const getters = {
  username: state => state.user.username,
  // getters 返回一个方法，从而接受参数
  usernames: state => params => state.user.username + params,
};
export default getters;
